#include <iostream>

void typedef_func()
{
    typedef double wages;
    typedef wages base, *p;

    // c11 methods
    using newd = double;
    newd dd = 3.14;
}

void typedef_func2()
{
    typedef char *pstring;
    const pstring cstr = 0;
    const pstring *ps;
    char b = 'H';
    // Cannot modified
    // cstr = &b;
    ps = &cstr;
    std::cout << ps << " " << &cstr << std::endl;
    const pstring cstr2 = &b;
    ps = &cstr2;
    std::cout << ps << " " << &cstr2 << std::endl;
}

int main()
{
    typedef_func2();
    return 0;
}